
<extend name="Public/base" />
<block name="style">
    <style type="text/css">
    .btn{

    background: #09c;
}
.btn:hover{
    background: #09c;
}
    body{
        color:#000;
        font-family: '宋体';
    }
    .code{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;
    }
   .side-sub-menu > li > .item {
                color: #000;
                font-family: '宋体';
                font-size:15px;padding:0px;
                line-height: 25px;
            }
    .sidebar {
        background: #3697A0;
        position: absolute;
    }   
  
    form .form-item{
        width:50%;
        
    }

     /* 头部Logo,主导航*/
            body{
                color:#000;
                font-family: '宋体';
                font-weight: 900;
            }
            .header {
                background-color:   #3697A0;
                height: 45px;
            }
            /* 主导航 */
            .main-nav a {
                height: 45px;
                color: #150303;
            }
            .main-nav a:hover {
                height: 45px;
                background-color:#70bcf3;
                color: #150303;
            }
            .main-nav .current{
                height: 45px;
                background-color: #70bcf3;
            }
            .main-nav .current a {
                height: 45px;
                background-color: #70bcf3;
                color: #150303;
            }
            .logo{
                height: 45px;
                background: #ccc;
            }
            .sidebar{
                margin-top:-5px;
                background:     #3697A0;
                color: #000;
                position: fixed;
                height: 110%;
                margin-top:-40px;
            }
            .subnav h3{
                color: #000;
            }

            .main-nav {
                /*width:100%;*/
                float: none;
                height: auto;
            }

            .mainnav {
                /*height: auto;*/
                height: 100%;
            }

            .main-nav li{
                float: none;
                width:180px;
            }



 
    </style>
</block>
<block name="body">
    <div class="main-title">
        <h2>平台商户资料</h2>
    </div>
    



    <!-- 标签页导航 -->
    <div class="tab-wrap" style="position:relative">
        <div class="tab-content">
            <ul class="tab-nav nav">
                <li data-tab="tab1" class="current"><a href="javascript:void(0);">基本资料 </a></li>
                <li data-tab="tab2" class=""><a href="javascript:void(0);">他的团队 </a></li>
                <li data-tab="tab3" class=""><a href="javascript:void(0);">订单详情 </a></li>
            </ul>

    


            <!-- 学籍信息  -->
            <div id="tab1" class="tab-pane in tab1">
                    <form action="{:U()}" method="post" class="form-horizontal">
                        
                          <input type="hidden" name="uid" value="{$yh.uid}">
                            <div class="form-item">
                                <label class="item-label">名字</label>
                                <div class="controls">
                                    <input type="text" style="height:30px;" class="text input-large name"  name="name" value="{$yh.name}">
                                </div>
                               
                            </div>
                            <div class="form-item">
                                <label class="item-label">身份证号</label>
                                <div class="controls">
                                    <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="identify" value="{$yh.identify}">
                                </div>
                            </div>

     

                                <div class="form-item">
                                    <label class="item-label">商户编号</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="money" value="{$yh.yh_uid}">
                                    </div>
                                </div>


                                <div class="form-item">
                                    <label class="item-label">商户推广数字码</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="money" value="{$yh.tg_num}">
                                    </div>
                                </div>

                           


                                <div class="form-item">
                                    <label class="item-label">支付宝账号</label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;" class="text input-large" name="alipay" value="{$yh.alipay}">
                                    </div>
                                </div>
                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">商户余额</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="money" value="{$gather.money}">
                                    </div>
                                </div>


                                <div class="form-item"   style="float: left;"   >
                                    <label class="item-label">提现次数</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="count" value="{$gather.count}">
                                    </div>
                                </div>



                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">花呗支付手续费</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;" class="text input-large" name="path1" value="{$gather.path1}">
                                    </div>
                                </div>
                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">花呗支付回款费率</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="path6" value="{$gather.path6}">
                                    </div>
                                </div>

                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">信用卡支付手续费</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;" class="text input-large" name="path2" value="{$gather.path2}">
                                    </div>
                                </div>
                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">信用卡支付回款费率</span></label>
                                    <div class="controls">
                                        <input type="text" style="height:30px;background:#EEE8CD" class="text input-large" disabled name="path5" value="{$gather.path5}">
                                    </div>
                                </div>




                                 <div class="form-item"   style="float: left;">
                                    <label class="item-label">花呗上级设定费率</span></label>
                                    <div class="controls">
                                        <if condition="$gather[level] eq 1">
                                             <input type="text" style="height:30px;" class="text input-large" name="up_set" value="{$gather.up_set}">
                                             <else/>
                                             <input type="text" style="height:30px;" class="text input-large" readonly name="up_set" value="{$gather.up_set}">
                                        </if>
                                        
                                    </div>
                                </div>

                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">信用卡上级设定费率</span></label>
                                    <div class="controls">
                                        <if condition="$gather[level] eq 1">
                                             <input type="text" style="height:30px;" class="text input-large" name="up_set2" value="{$gather.up_set2}">
                                             <else/>
                                             <input type="text" style="height:30px;" class="text input-large" readonly name="up_set2" value="{$gather.up_set2}">
                                        </if>
                                        
                                    </div>
                                </div>



                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">在线收款</span></label>
                                    <div class="controls">
                                        <if condition="$gather[status] eq 1">
                                            <label> <input type="radio" style="width:20px;height:20px;" checked  class="text input-large" name="status" value="1">开</label> 
                                            <label> <input type="radio" style="width:20px;height:20px;" class="text input-large" name="status" value="0">关</label> 
                                        <else/>
                                            <label> <input type="radio" style="width:20px;height:20px;" class="text input-large" name="status" value="1">开</label> 
                                            <label> <input type="radio" style="width:20px;height:20px;" checked class="text input-large" name="status" value="0">关</label> 

                                        </if>
                                        
                                    </div>
                                </div>

                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">普通花呗授权</span></label>
                                    <div class="controls">
                                        <if condition="$gather[status_hb] eq 1">
                                            <label> <input type="radio" style="width:20px;height:20px;" checked  class="text input-large" name="status_hb" value="1">开</label> 
                                            <label> <input type="radio" style="width:20px;height:20px;" class="text input-large" name="status_hb" value="0">关</label> 
                                        <else/>
                                            <label> <input type="radio" style="width:20px;height:20px;" class="text input-large" name="status_hb" value="1">开</label> 
                                            <label> <input type="radio" style="width:20px;height:20px;" checked class="text input-large" name="status_hb" value="0">关</label> 

                                        </if>
                                        
                                    </div>
                                </div>

                               

                                <div class="form-item"   style="float: left;">
                                    <label class="item-label">提现状态</span></label>
                                    <div class="controls">
                                        <if condition="$gather[frozen] eq 1">
                                            <label> <input type="radio" style="width:20px;height:20px;" checked  class="text input-large" name="frozen" value="1">正常</label> 
                                            <label> <input type="radio" style="width:20px;height:20px;" class="text input-large" name="frozen" value="0">已冻结</label> 
                                            <div class="controls">
                                                <!-- <input type="text" placeholder="请填写冻结原因" > -->
                                            </div>
                                        <else/>
                                            <label> <input type="radio" style="width:20px;height:20px;" class="text input-large" name="frozen" value="1">正常</label> 
                                            <label> <input type="radio" style="width:20px;height:20px;" checked class="text input-large" name="frozen" value="0">已冻结</label>
                                            <br> 
                                            <div class="controls">
                                            <span>冻结原因：{$gather.frozen_cause}</span>
                                            </div>
                                        </if>
                                        
                                    </div>
                                </div>


                            <div class="form-item"   style="float: left;">
                                <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">修 改</button>
                                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                            </div>


                            <div style="clear: both;"></div>
                        </form>
            </div>


                <!--认证资料-->
            <div id="tab2" class="tab-pane tab2">
                <php>
                    $list=D('Ptyh')->where("pid=".$yh['uid'])->select();
                </php>
                <div class="data-table table-striped" >
                    <table style="font-size:14px;">
                        <thead>
                            <tr>
                                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                                <th>商户编号</th>
                                <th>姓名</th>
                                <th>店铺名称</th>
                                <th>成交笔数</th>
                                <th>总金额</th>
                                <th>认证状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <notempty name="list">
                            <volist name="list" id="rows">
                                <tr>
                                    <td><input class="ids" type="checkbox" name="id[]" value="{$rows['id']}" /></td>
                                    
                                    <td>{$rows['yh_uid']}</td>
                                    <td>{$rows['name']}</td>
                                    <td>{$rows['shop_name']}</td>
                                    <td>
                                        <php>
                                            $num=count(D('Dingdan')->where(['status'=>1,'uid'=>$rows['uid']])->select());
                                            echo $num;
                                        </php>
                                    </td>
                                    <td>
                                        <php>
                                            $sum=D('Dingdan')->where(['status'=>1,'uid'=>$rows['uid']])->sum('pay_money');
                                            echo $sum;
                                        </php>
                                    </td>
                                    <td>
                                        <php>
                                            if(empty($rows['identify'])){
                                                echo "该成员未认证";
                                            }else{
                                                echo "已认证";
                                            }
                                        </php>
                                    </td>
                                    <td>

                                        &nbsp;&nbsp;
                                        <a title="详细" href="{:U('yh_view?id='.$rows['id'])}">详细</a>
                                    </td>
                                    
                                </tr>
                            </volist>
                            <else/>
                            <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
                            </notempty>
                        </tbody>
                    </table>
                </div>

                <div class="page"  style="float:left;margin-right:300px;margin-top:20px;">{$_page}</div>
                    
            </div>

            <div id="tab3" class="tab-pane tab3">
                <php>
                    $list=D('Linshi')->where("uid=".$yh['uid'])->order('time desc')->select();
                </php>
                <div class="data-table table-striped" >
                    <table style="font-size:14px;">
                        <thead>
                            <tr>
                                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                                
                                <th>类型</th>
                                <th>日期</th>
                                <th>收益</th>
                                <th>当前余额</th>
                                <th>状态</th>
                            </tr>
                        </thead>
                        <tbody>
                            <notempty name="list">
                            <volist name="list" id="rows">
                                <tr>
                                    <td><input class="ids" type="checkbox" name="id[]" value="{$rows['id']}" /></td>
                                    
                                    <td>
                                        <php>
                                            if($rows['type']==1){
                                                echo '订单';
                                            }else if($rows['type']==2||$rows['type']==4){
                                                echo '分润';
                                            }else{
                                                echo '提现';
                                            }
                                        </php>
                                    </td>
                                    <td><php>if($rows['time']==''){
                                    }else{
                                        echo date("Y-m-d H:i:s",$rows['time']);
                                    }</php></td>
                                    <td>{$rows['money']}</td>
                                    <td>
                                        {$rows['t_money']}
                                    </td>
                                    <td>
                                        <php>if($rows['status']==1){
                                            echo '成功';
                                        }else{
                                            echo '<font style="color:red">失败</font>';
                                        }</php>
                                    </td>
                                    
                                </tr>
                            </volist>
                            <else/>
                            <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
                            </notempty>
                        </tbody>
                    </table>
                </div>

                <div class="page"  style="float:left;margin-right:300px;margin-top:20px;">{$_page}</div>
                    
            </div>

 
                
        </div>


    </div>
    
    <!-- <button type="button" id='kkcs'>短信测试</button> -->
</block>
<block name="script">
    <script type="text/javascript" src="__STATIC__/jquery.dragsort-0.5.1.min.js"></script>


    <script type="text/javascript">
        Think.setValue("extend", {$info.extend|default=0});
        //导航高亮
        highlight_subnav('{:U('ptyh')}');


        $(function(){
            showTab();
        })

 





        $('.code').click(function(){
            var code=$('.app_auth_code').val();
            location.href="{:U('Alipay/get_token?code=')}"+code;
        })

    </script>

<!-- app_auth_token":"201712BBdf7f602ee00f4a6ca88e1116f468bD12","app_refresh_token":"201712BBc70480b713d141529bf20d71c1cb4B12","auth_app_id":"2017051207213149","user_id":"2088721036926123"} -->

</block>

